/*
 * @author: sanbao
 * @Date: 2022-07-24 09:16:37
 */

//接口 
export interface rightsIns {
    authName: string
    id: number
    level: string
    path: string
    pid: number
}

// tablist
type tablistInt = {
    type?: string,
    label: string,
    prop?: string
}

// 分页
interface pagerInt {
    currentPage: number
    pageSize: number
    total: number
    pageSizes: [number, number, number]
}

export class RightsData {
    // tanle数据
    tableData: rightsIns[] = []
    // 分页
    pager: pagerInt = {
        currentPage: 1,
        pageSize: 5,
        total: 0,
        pageSizes: [5, 10, 15],
    }
    // tablist
    tablelist: tablistInt[] = [
        {
            label: '#',
            type: 'index'
        },
        {
            label: '权限名称',
            prop: "authName"
        },
        {
            label: '路径',
            prop: 'path'
        },
        {
            label: "权限等级",
            type: "level"
        }
    ]
}    